local scene = gamestate.new()
function scene:enter(from)
	net.inGame = false
    self.stage = 1
    self.player = {stage = 1,life = 3,score = 0}
    self:newStage()
end

function scene:newStage()
	collectgarbage("collect")
	self.game = game_mode.classic(self.player)
end

function scene:update(dt)
    self.game:update(dt)
end

function scene:draw()
    self.game:draw()
    suit.draw()
end

function scene:keypressed(k)
	if k == "escape" then
		gamestate.switch(gameState.title)
		if not SERVER then
            sound:stopAll()
        end
	end
end

return scene